home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 7: Sunsite
/
Linux Cubed Series 7 - Sunsite Vol 1.iso
/
system
/
admin
/
linuxcon.000
/
linuxcon
/
linuxconf-1.6
/
dialog
/
internal.h
< prev
next >
Wrap
C/C++ Source or Header
|
1996-07-22
|
1KB
|
56 lines
#pragma interface
#ifndef INTERNAL_H
#define INTERNAL_H
#ifndef MISC_H
#include "../misc/misc.h"
#endif
class BUTTONS_INFO {
int but_options; // Set of MENUBUT_xxxx
int nb;
const char *tb[10];
MENU_STATUS tbret[10]; // Return code associated with a button
int y; /* Coordinate of the line where the buttons are drawn */
int tbx[10]; /* Horizontal coordinate of each buttons */
SSTRING helpfile; /* File to show when help is selected */
/*~PROTOBEG~ BUTTONS_INFO */
public:
BUTTONS_INFO (void);
MENU_STATUS dokey (WINDOW *dialog,
int key,
int &selected,
int other_focus);
void draw (WINDOW *dialog, int button);
int evalwidth (void);
private:
void help (WINDOW *win);
public:
void html_draw (void);
void set (int _but_options, const char *_helpfile);
void setcursor (WINDOW *dialog, int button);
void setup (int _y, int width);
/*~PROTOEND~ BUTTONS_INFO */
};
class HTML_VARVAL{
SSTRINGS vars;
SSTRINGS vals;
SSTRING context;
/*~PROTOBEG~ HTML_VARVAL */
public:
HTML_VARVAL (const char *key);
void add (const char *var, const char *val);
int exist (const char *var);
const char *getcontext (void);
int getnb (void);
const char *getval (const char *var);
const char *getval (int no);
const char *getvar (int no);
/*~PROTOEND~ HTML_VARVAL */
};
#endif